-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch from chalk to colorette #218
Conversation
Drop unsupported Node 13
…eat/colorette � Conflicts: � test/cli.test.js
Needs work |
@jorgebucaran Any ideas why this might be failing in CI still? According to https://docs.github.com/en/actions/reference/environment-variables, all the env values that we use to determine colour support should be set. |
All my colorette tests are passing after we merged your PR, so at least that worked. I see you are using |
why was this closed? |
@mcollina I am still fighting with failing CI and don't want people flooded with notifications about interim commits. |
@kibertoad For some reason let enabled =
!isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI) ...to always evaluate to According to https://no-color.org:
Manually setting |
Maybe this is |
@jorgebucaran Great finding! I think there's an option for colours in tap, I'll try that. |
d767067 probably won't work. |
@jorgebucaran Seems to have worked, though, now the only reason why it is failing is code coverage that dropped for some reason. |
Pull Request Test Coverage Report for Build 1150442036
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm concerned about the statement around some part of this new dependency being a singleton. How does that affect things?
@mcollina Adjusted PR to no longer modify state, now it works the same way it did with chalk, we just do readonly check of colorette colour support resolution results. |
Run tests on Win and Mac
Code is good, we need to fix CI. |
Remove the glob from the npm script and add it to the files:
- '**/*.test.js' |
@jsumners That seems to completely break library imports for some reason. update: ah, wait, looks like this glob then also includes the node_modules and tries to run tests from there |
Removed Windows from CI for now, because it seems to be failing for reasons unrelated to colorette migration, but glob is fine now. |
Any ideas why |
Not a clue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@mcollina CI is green! |
@jsumners I think I should bump the major for this. WDYT? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Agreed. |
fixes #208